package com.children.growth.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.children.growth.entity.VoiceLog;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 语音日志服务接口
 * 
 * @author children
 * @since 1.0.0
 */
public interface VoiceLogService {

    /**
     * 创建语音日志
     */
    boolean createVoiceLog(VoiceLog voiceLog, MultipartFile audioFile);

    /**
     * 获取语音日志列表
     */
    Page<VoiceLog> getVoiceLogList(Long userId, Integer pageNum, Integer pageSize, String emotion, String keyword, String startDate, String endDate);

    /**
     * 获取语音日志详情
     */
    VoiceLog getVoiceLogById(Long id);

    /**
     * 更新语音日志
     */
    boolean updateVoiceLog(VoiceLog voiceLog);

    /**
     * 删除语音日志
     */
    boolean deleteVoiceLog(Long id);



    /**
     * 情感分析
     */
    String analyzeEmotion(String text);

    /**
     * 获取用户语音统计
     */
    Object getVoiceStatistics(Long userId);
} 